package com.test.ob;

import java.util.Observable;
import java.util.Observer;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/05/17 9:18
 **/
public class ObObject implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        System.out.println("ObableObject 对象改变了！update方法被调用！新的名称是：" + ((ObableObject) arg).getName());
    }
}
